//
//  UIBarButtonItem+extension.swift
//  LXQWB
//
//  Created by 江海天 on 2017/7/5.
//  Copyright © 2017年 江海天. All rights reserved.
//

import UIKit

extension UIBarButtonItem{
	///按钮做customView
	convenience init(imageName:String,imageBackgroundName:String?,target: Any?, action: Selector?){
		let btn = UIButton(imageName: imageName, imageBackgroundName: imageBackgroundName)
		btn.addTarget(target!, action: action!, for: UIControlEvents.touchDown)
		self.init(customView: btn)
	}
}
